package domain.advertisement;

import java.io.Serializable;
import java.util.Date;

/* Class for a specific advertisement. Handles the durationDate, number of clicks
 * and number of views that a Advertiser wants. */
public class AdvertisementScheme implements Serializable {

	private Date durationDate;
	private int clicks;
	private int views;
	private AdType type;

	public AdvertisementScheme(AdType type, Date durationDate, int clicks, int views) {
		this.durationDate = durationDate;
		this.clicks = clicks;
		this.views = views;
		this.type = type;
	}

	public AdType getType() {
		return type;
	}

	public void setType(AdType type) {
		this.type = type;
	}

	public Date getDuration() {
		return durationDate;
	}

	public void setDuration(Date durationDate) {
		this.durationDate = durationDate;
	}

	public int getClicks() {
		return clicks;
	}

	public void setClicks(int clicks) {
		this.clicks = clicks;
	}

	public int getViews() {
		return views;
	}

	public void setViews(int views) {
		this.views = views;
	}

	@Override
	public String toString() {
		return ("AdvertisementScheme [ durationDate = " + durationDate + ", views = " + views
				+ ", clicks = " + clicks + ", adType = " + type + " ]");
	}
}
